<style>
	@import url('../static/css/studentreg.css');
</style>
<template>
	<!-- 公共头部 -->
	<view>
		<my-header :title="informationfilling"></my-header>
	</view>
	<!-- 注册界面 -->
	<view class="content">
		<uni-section>
			<view class="example">
				<!-- 基础用法，=不包含校验规则1 -->
				<uni-forms ref="valiForm" :rules="rules" :modelValue="valiFormData">
				
				     <view class="typeselect">
						<text>{{typename}}</text>
					 </view>
					 
					<view v-if="ifteacher=='0'" class="myteacher" @click="classselectchange(ifcode)"> 
						<text>{{typearr[ifcode]}}</text>
					</view>
					 
					<uni-forms-item :label="lang.name" name="username">
						<uni-easyinput v-model="valiFormData.username" :placeholder="lang.entername" />
					</uni-forms-item>
					
				
						<uni-forms-item :label="lang.schoolreg" name="school_id">
							<uni-data-select v-model="valiFormData.school_id" :localdata="school"  @change="schoolchange"></uni-data-select>
						</uni-forms-item>
							<uni-forms-item :label="lang.gradereg" name="team">
								<uni-data-select v-model="valiFormData.team" :localdata="teamclass"  @change="teamchange"></uni-data-select>
							</uni-forms-item>
						<uni-forms-item :label="lang.mobile" name="user_mobile">
							<view class="user_mobile">
								<uni-easyinput disabled="" v-model="valiFormData.user_mobile"  :placeholder="lang.entermobile" />
							</view>
							<view class="get_mobile">
								<button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">{{lang.clickbind}}</button>
							</view>
						</uni-forms-item>
					<view class="button-group">
						<button type="primary" size="mini" @click="submit('valiForm')">{{lang.submit}}</button>
					</view>
				</uni-forms>
				
			</view>
		</uni-section>
		<view>
			<Tabbar :current="'2'"></Tabbar>
		</view>
	</view>
</template>
<script type="module" src="../static/js/studentreg.js"></script>